//
//  StatusHomeNSObject.swift
//  XiaozhuangWeibo
//
//  Created by Maxwell on 11/28/18.
//  Copyright © 2018 Maxwell. All rights reserved.
//

import UIKit
import SwiftyJSON

class WeiboData {
    //1.微博创建时间
    var creat_at:String?
    //2.微博id
    var id: Int = 0
    //3.微博内容
    var text:String?
    //4.微博来源
    var source:String?
    //5.微博图片
    var pic_url:[[String:AnyObject]]?
    
    init(jsonData: JSON) {
        creat_at = jsonData["creat_at"].stringValue
        id = jsonData["id"].intValue
        text = jsonData["text"].stringValue
        source=jsonData["source"].stringValue
        pic_url = jsonData["pic_url"].arrayObject as? [[String : AnyObject]]
    }
}
